using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using GoogleEarthClasses.Global;
namespace GoogleEarthClasses.Data
{
    class DLocationData
    {
        public static DataTable SelectAll()
        {
            SqlDataAdapter da = null;
            try
            {
                //da = new SqlDataAdapter("up_LocationData_SelectAll", DBHelper.GetConnection());
                da = new SqlDataAdapter("sp_Points_SelectAll", DBHelper.GetConnection());
                da.SelectCommand.CommandType = CommandType.StoredProcedure;
                DataTable dt = new DataTable();
                da.Fill(dt);
                return dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                if (da != null) da.SelectCommand.Connection.Close();
            }
        }
    }
}
